package com.iknow.view.widget.media;

public class SentenceInfo
{
  private String content;
  private int fromIndex;
  private long fromTime;
  private int toIndex;
  private long toTime;

  public SentenceInfo(String paramString)
  {
    this(paramString, 0L, 0L);
  }

  public SentenceInfo(String paramString, long paramLong)
  {
    this(paramString, paramLong, 0L);
  }

  public SentenceInfo(String paramString, long paramLong1, long paramLong2)
  {
    this.content = paramString;
    this.fromTime = paramLong1;
    this.toTime = paramLong2;
  }

  public String getContent()
  {
    return this.content;
  }

  public long getDuring()
  {
    return (this.toTime - this.fromTime);
  }

  public int getFromIndex()
  {
    return this.fromIndex;
  }

  public long getFromTime()
  {
    return this.fromTime;
  }

  public int getToIndex()
  {
    return this.toIndex;
  }

  public long getToTime()
  {
    return this.toTime;
  }

  public boolean isInIndex(int paramInt)
  {
    int i;
    if ((paramInt >= this.fromIndex) && (paramInt < this.toIndex))
      i = 1;
    while (true)
    {
      return i;
      i = 0;
    }
  }

  public boolean isInTime(long paramLong)
  {
    int i;
    if ((paramLong >= this.fromTime) && (paramLong < this.toTime))
      i = 1;
    while (true)
    {
      return i;
      i = 0;
    }
  }

  public void setFromIndex(int paramInt)
  {
    this.fromIndex = paramInt;
  }

  public void setFromTime(long paramLong)
  {
    this.fromTime = paramLong;
  }

  public void setToIndex(int paramInt)
  {
    this.toIndex = paramInt;
  }

  public void setToTime(long paramLong)
  {
    this.toTime = paramLong;
  }

  public String toString()
  {
    return "{" + this.fromTime + "(" + this.content + ")" + this.toTime + "}";
  }
}